<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>进阶互动太阳系 | 科普模拟</title>
    <!-- Font/Icon Links (same as before) -->
    <link href="https://fonts.ludong.pro/css2?family=Exo+2:wght@300;400;600&display=swap" rel="stylesheet">
    <link href="https://cdn.bootcdn.net/ajax/libs/font-awesome/6.2.1/css/all.min.css" rel="stylesheet">
    <link rel="stylesheet" href="style.css">
</head>
<body>
    <div class="simulation-container">
        <h1 class="main-title">进阶互动太阳系模拟</h1>
        <canvas id="solarSystemCanvas"></canvas>

        <!-- Control Panel (Top Left) -->
        <div class="panel controls-panel">
            <h2><i class="fas fa-sliders-h"></i> 控制台</h2>
            <div class="control-group">
                <label>模拟:</label>
                <button id="toggleRunButton" class="active" title="暂停模拟"><i class="fas fa-pause"></i></button>
                <button id="resetSpeedButton" title="重置速度"><i class="fas fa-redo"></i></button>
                <button id="slowDownButton" title="减慢速度"><i class="fas fa-backward-step"></i></button>
                <button id="speedUpButton" title="加快速度"><i class="fas fa-forward-step"></i></button>
                速度: <span id="timeSpeedDisplay">1.0</span>x
            </div>
             <div class="control-group">
                 <label>视图:</label>
                <button id="toggleOrbitsButton" class="active" title="轨道"><i class="fas fa-circle-notch"></i></button>
                <button id="toggleLabelsButton" class="active" title="标签"><i class="fas fa-tags"></i></button>
                <button id="toggleTrailsButton" title="轨迹"><i class="fas fa-route"></i></button> <!-- New Trail Button -->
                <button id="focusPlanetButton" title="聚焦"><i class="fas fa-crosshairs"></i></button>
                <button id="resetViewButton" title="全景"><i class="fas fa-expand"></i></button>
            </div>
             <p class="hint"><i class="fas fa-info-circle"></i> 滚轮缩放, 拖动平移, 点击选择。</p>
        </div>

        <!-- Information Panel (Top Right) -->
        <div class="panel info-panel" id="infoPanel">
            <h2><i class="fas fa-database"></i> 天体信息</h2>
            <div class="info-content">
                <div class="info-text">
                    <p id="infoName">名称: --</p>
                    <p id="infoRadius">半径: --</p>
                    <p id="infoOrbitRadius">轨道半径: --</p>
                    <p id="infoPeriod">公转周期: --</p>
                    <p id="infoTemp">表面温度: --</p> <!-- New -->
                    <p id="infoGrav">表面重力: --</p> <!-- New -->
                    <p id="infoMoons">主要卫星: --</p>
                    <p id="infoFact">简介: --</p>
                </div>
                <div class="info-image-container"> <!-- New Image Container -->
                    <img id="infoImage" src="" alt="天体图像" style="display: none;">
                </div>
            </div>
             <p class="hint" id="selectionHint">请在画布上点击一个天体以查看信息。</p>
             <!-- Note: Video embedding is complex, requires external libraries or careful iframe management, omitted here for brevity -->
        </div>
    </div>

    <script src="script.js"></script>
</body>
</html>